package com.zcah.sensitive.common.config;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Configuration;
import org.springframework.core.env.Environment;

@Configuration
public class HbaseConfig {
    @Autowired
    private Environment environment;

    //    Bean for hbase
/*    @Bean
    public Admin admin() throws IOException {
        org.apache.hadoop.conf.Configuration config = HBaseConfiguration.create();
        config.set("hbase.zookeeper.quorum",
                environment.getRequiredProperty("hbase.zookeeper.quorum"));
        config.set("hbase.zookeeper.property.clientPort",
                environment.getRequiredProperty("hbase.zookeeper.property.clientPort"));
        config.set("zookeeper.znode.parent",
                environment.getRequiredProperty("zookeeper.znode.parent"));
        return ConnectionFactory.createConnection(config).getAdmin();
    }*/


}
